package com.menghao.sso.server.model.credentials;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "cas_user")
public class UsernamePasswordCredentials implements Credentials {

    private static final long serialVersionUID = -8343864967200862794L;

    @Id
    @GeneratedValue
    private String id;
    private String username;
    private String password;
}
